﻿/// <reference path="jquery-1.6.4.min.js" />
/// <reference path="CommonFunction.js" />

function pageLoad() {
    $(function() {
        $('[id$=tb_InvoiceNumber]').keypress(function(e) {
            var code = null;
            code = (e.keyCode ? e.keyCode : e.which);
            if (code == 13 || code == 9) {
                $("[id$=tb_Reason]").focus();
                $("[id$=tb_Reason]").select();
                return false;
            }
            return true;
        });
        $('[id$=tb_InvoiceNumber]').focus();
    });
}
